package cn.zsb.anoprinter;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * @author oldliu
 * @since 1.0
 */
@Service
public class Drawer {

    private TextPaper zhizhang;

    public void paint(){
        System.out.println("画家在"+zhizhang+"上作画");
    }
    @Autowired
    public void setZhizhang(@Qualifier("a4") TextPaper p){
        this.zhizhang=p;
    }
}
